/*CodeBuilder v2.0.1 by 2022-06-01 18:11 */
using System;
using ASmile.ORM.Entitys;

namespace ASmile.DBModel
{
	public partial class Sys_Report : EntityBase
	{
		private System.String _Id;
		/// <summary>
		/// Id
		/// </summary>
		[Entity(CNId, 0, true, IsPrimaryKey = true)]
		public System.String Id
		{
			get { return _Id; }
			set
			{
				if (!OnPropertyChanged(CNId, _Id, value)) return;
				_Id = value;
				SetFieldChanged(CNId) ;
			}
		}

		private System.Int32 _ReportType;
		/// <summary>
		/// 报表类型，0：默认控件，1：Grid++
		/// </summary>
		[Entity(CNReportType, 1, true)]
		public System.Int32 ReportType
		{
			get { return _ReportType; }
			set
			{
				if (!OnPropertyChanged(CNReportType, _ReportType, value)) return;
				_ReportType = value;
				SetFieldChanged(CNReportType) ;
			}
		}

		private System.String _ReportTypeName;
		/// <summary>
		/// ReportTypeName
		/// </summary>
		[Entity(CNReportTypeName, 2)]
		public System.String ReportTypeName
		{
			get { return _ReportTypeName; }
			set
			{
				if (!OnPropertyChanged(CNReportTypeName, _ReportTypeName, value)) return;
				_ReportTypeName = value;
				SetFieldChanged(CNReportTypeName) ;
			}
		}

		private System.String _FormName;
		/// <summary>
		/// 打印的窗体的包含程序集的名称
		/// </summary>
		[Entity(CNFormName, 3, true)]
		public System.String FormName
		{
			get { return _FormName; }
			set
			{
				if (!OnPropertyChanged(CNFormName, _FormName, value)) return;
				_FormName = value;
				SetFieldChanged(CNFormName) ;
			}
		}

		private System.String _ProcName;
		/// <summary>
		/// 存储过程名
		/// </summary>
		[Entity(CNProcName, 4, true)]
		public System.String ProcName
		{
			get { return _ProcName; }
			set
			{
				if (!OnPropertyChanged(CNProcName, _ProcName, value)) return;
				_ProcName = value;
				SetFieldChanged(CNProcName) ;
			}
		}

		private System.String _ProcNamePrintArg;
		/// <summary>
		/// 获取打印参数的存储过程
		/// </summary>
		[Entity(CNProcNamePrintArg, 5)]
		public System.String ProcNamePrintArg
		{
			get { return _ProcNamePrintArg; }
			set
			{
				if (!OnPropertyChanged(CNProcNamePrintArg, _ProcNamePrintArg, value)) return;
				_ProcNamePrintArg = value;
				SetFieldChanged(CNProcNamePrintArg) ;
			}
		}

		private System.Boolean _IsPager;
		/// <summary>
		/// 是否分页查询
		/// </summary>
		[Entity(CNIsPager, 6, true)]
		public System.Boolean IsPager
		{
			get { return _IsPager; }
			set
			{
				if (!OnPropertyChanged(CNIsPager, _IsPager, value)) return;
				_IsPager = value;
				SetFieldChanged(CNIsPager) ;
			}
		}

		private System.Boolean _IsSearchTxt;
		/// <summary>
		/// IsSearchTxt
		/// </summary>
		[Entity(CNIsSearchTxt, 7, true)]
		public System.Boolean IsSearchTxt
		{
			get { return _IsSearchTxt; }
			set
			{
				if (!OnPropertyChanged(CNIsSearchTxt, _IsSearchTxt, value)) return;
				_IsSearchTxt = value;
				SetFieldChanged(CNIsSearchTxt) ;
			}
		}

		private System.Boolean _IsOut;
		/// <summary>
		/// IsOut
		/// </summary>
		[Entity(CNIsOut, 8, true)]
		public System.Boolean IsOut
		{
			get { return _IsOut; }
			set
			{
				if (!OnPropertyChanged(CNIsOut, _IsOut, value)) return;
				_IsOut = value;
				SetFieldChanged(CNIsOut) ;
			}
		}

		private System.Boolean _IsPrint;
		/// <summary>
		/// IsPrint
		/// </summary>
		[Entity(CNIsPrint, 9, true)]
		public System.Boolean IsPrint
		{
			get { return _IsPrint; }
			set
			{
				if (!OnPropertyChanged(CNIsPrint, _IsPrint, value)) return;
				_IsPrint = value;
				SetFieldChanged(CNIsPrint) ;
			}
		}

		private System.String _Remark;
		/// <summary>
		/// Remark
		/// </summary>
		[Entity(CNRemark, 10)]
		public System.String Remark
		{
			get { return _Remark; }
			set
			{
				if (!OnPropertyChanged(CNRemark, _Remark, value)) return;
				_Remark = value;
				SetFieldChanged(CNRemark) ;
			}
		}

		private System.DateTime _AddTime;
		/// <summary>
		/// AddTime
		/// </summary>
		[Entity(CNAddTime, 11, true)]
		public System.DateTime AddTime
		{
			get { return _AddTime; }
			set
			{
				if (!OnPropertyChanged(CNAddTime, _AddTime, value)) return;
				_AddTime = value;
				SetFieldChanged(CNAddTime) ;
			}
		}

		private System.String _AddUserId;
		/// <summary>
		/// AddUserId
		/// </summary>
		[Entity(CNAddUserId, 12)]
		public System.String AddUserId
		{
			get { return _AddUserId; }
			set
			{
				if (!OnPropertyChanged(CNAddUserId, _AddUserId, value)) return;
				_AddUserId = value;
				SetFieldChanged(CNAddUserId) ;
			}
		}

		private System.String _AddHost;
		/// <summary>
		/// AddHost
		/// </summary>
		[Entity(CNAddHost, 13)]
		public System.String AddHost
		{
			get { return _AddHost; }
			set
			{
				if (!OnPropertyChanged(CNAddHost, _AddHost, value)) return;
				_AddHost = value;
				SetFieldChanged(CNAddHost) ;
			}
		}

		private System.DateTime? _LastTime;
		/// <summary>
		/// LastTime
		/// </summary>
		[Entity(CNLastTime, 14)]
		public System.DateTime? LastTime
		{
			get { return _LastTime; }
			set
			{
				if (!OnPropertyChanged(CNLastTime, _LastTime, value)) return;
				_LastTime = value;
				SetFieldChanged(CNLastTime) ;
			}
		}

		private System.String _LastHost;
		/// <summary>
		/// LastHost
		/// </summary>
		[Entity(CNLastHost, 15)]
		public System.String LastHost
		{
			get { return _LastHost; }
			set
			{
				if (!OnPropertyChanged(CNLastHost, _LastHost, value)) return;
				_LastHost = value;
				SetFieldChanged(CNLastHost) ;
			}
		}

		private System.String _LastUserId;
		/// <summary>
		/// LastUserId
		/// </summary>
		[Entity(CNLastUserId, 16)]
		public System.String LastUserId
		{
			get { return _LastUserId; }
			set
			{
				if (!OnPropertyChanged(CNLastUserId, _LastUserId, value)) return;
				_LastUserId = value;
				SetFieldChanged(CNLastUserId) ;
			}
		}

		#region 字段名的定义
		public const string CNId = "Id";
		public const string CNReportType = "ReportType";
		public const string CNReportTypeName = "ReportTypeName";
		public const string CNFormName = "FormName";
		public const string CNProcName = "ProcName";
		public const string CNProcNamePrintArg = "ProcNamePrintArg";
		public const string CNIsPager = "IsPager";
		public const string CNIsSearchTxt = "IsSearchTxt";
		public const string CNIsOut = "IsOut";
		public const string CNIsPrint = "IsPrint";
		public const string CNRemark = "Remark";
		public const string CNAddTime = "AddTime";
		public const string CNAddUserId = "AddUserId";
		public const string CNAddHost = "AddHost";
		public const string CNLastTime = "LastTime";
		public const string CNLastHost = "LastHost";
		public const string CNLastUserId = "LastUserId";
		#endregion

	}
}
